/*************************************************************************
	> File Name: sleep.c
	> Author: 
	> Mail: 
	> Created Time: Wed 24 Mar 2021 08:13:54 PM CST
 ************************************************************************/

#include "head.h"

void wakeup(int signum) {
    printf("wakeup...\n");
}

int main(int argc, char **argv) {
    time_t time;
    time = atoi(argv[1]);
    signal(SIGALRM, wakeup);
    alarm(time);
    pause();
    return 0;
}
